<?php
require_once 'Sabai/Controller/Front.php';

class Xigg_Admin_Tag extends Sabai_Controller_Front
{
	function Xigg_Admin_Tag()
	{
		parent::Sabai_Controller_Front('List', 'Xigg_Admin_Tag_', dirname(__FILE__) . '/Tag');
	}

	function _getRoutes()
	{
        $routes['tag/list'] = array('controller' => 'List');
        $routes['tag/submit'] = array('controller' => 'Submit');
        $routes['tag/delete_empty_tags'] = array('controller' => 'DeleteEmptyTags');
        $routes['tag/add'] = array('controller' => 'Create');
        $routes['tag/:id/edit'] = array('controller' => 'Update', 'requirements' => array(':id' => '\d+'));
        $routes['tag/:id/delete'] = array('controller' => 'Delete', 'requirements' => array(':id' => '\d+'));
        return $routes;
	}
}